package com.alm.token.ui.data.bean;

import com.alm.token.base.BaseAdapter;

import java.util.List;

/**
 * Created by en on 2019/1/3.
 */

public class MessageData {

    /**
     * msg : 操作成功
     * status : 0
     * data : {"msgList":{"code":0,"count":1,"data":[{"id":2,"userId":101,"title":"testsetests","content":"afasdfasfasdfasffsdfasdfasdfsaf","status":2,"createTime":1546069892000,"readTime":null,"updateTime":null,"msgType":2,"endTime":null,"isDel":0}],"msg":""},"noReadCount":1}
     * success : true
     * total : null
     */

    private String msg;
    private int status;
    private DataBeanX data;
    private boolean success;
    private Object total;

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public DataBeanX getData() {
        return data;
    }

    public void setData(DataBeanX data) {
        this.data = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public Object getTotal() {
        return total;
    }

    public void setTotal(Object total) {
        this.total = total;
    }

    public static class DataBeanX {
        /**
         * msgList : {"code":0,"count":1,"data":[{"id":2,"userId":101,"title":"testsetests","content":"afasdfasfasdfasffsdfasdfasdfsaf","status":2,"createTime":1546069892000,"readTime":null,"updateTime":null,"msgType":2,"endTime":null,"isDel":0}],"msg":""}
         * noReadCount : 1
         */

        private MsgListBean msgList;
        private int noReadCount;

        public MsgListBean getMsgList() {
            return msgList;
        }

        public void setMsgList(MsgListBean msgList) {
            this.msgList = msgList;
        }

        public int getNoReadCount() {
            return noReadCount;
        }

        public void setNoReadCount(int noReadCount) {
            this.noReadCount = noReadCount;
        }

        public static class MsgListBean {
            /**
             * code : 0
             * count : 1
             * data : [{"id":2,"userId":101,"title":"testsetests","content":"afasdfasfasdfasffsdfasdfasdfsaf","status":2,"createTime":1546069892000,"readTime":null,"updateTime":null,"msgType":2,"endTime":null,"isDel":0}]
             * msg :
             */

            private int code;
            private int count;
            private String msg;
            private List<DataBean> data;

            public int getCode() {
                return code;
            }

            public void setCode(int code) {
                this.code = code;
            }

            public int getCount() {
                return count;
            }

            public void setCount(int count) {
                this.count = count;
            }

            public String getMsg() {
                return msg;
            }

            public void setMsg(String msg) {
                this.msg = msg;
            }

            public List<DataBean> getData() {
                return data;
            }

            public void setData(List<DataBean> data) {
                this.data = data;
            }

            public static class DataBean extends BaseAdapter.BaseItem {
                /**
                 * id : 2
                 * userId : 101
                 * title : testsetests
                 * content : afasdfasfasdfasffsdfasdfasdfsaf
                 * status : 2
                 * createTime : 1546069892000
                 * readTime : null
                 * updateTime : null
                 * msgType : 2
                 * endTime : null
                 * isDel : 0
                 */

                private int id;
                private int userId;
                private String title;
                private String content;
                private int status;
                private long createTime;
                private Object readTime;
                private Object updateTime;
                private int msgType;
                private Object endTime;
                private int isDel;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public int getUserId() {
                    return userId;
                }

                public void setUserId(int userId) {
                    this.userId = userId;
                }

                public String getTitle() {
                    return title;
                }

                public void setTitle(String title) {
                    this.title = title;
                }

                public String getContent() {
                    return content;
                }

                public void setContent(String content) {
                    this.content = content;
                }

                public int getStatus() {
                    return status;
                }

                public void setStatus(int status) {
                    this.status = status;
                }

                public long getCreateTime() {
                    return createTime;
                }

                public void setCreateTime(long createTime) {
                    this.createTime = createTime;
                }

                public Object getReadTime() {
                    return readTime;
                }

                public void setReadTime(Object readTime) {
                    this.readTime = readTime;
                }

                public Object getUpdateTime() {
                    return updateTime;
                }

                public void setUpdateTime(Object updateTime) {
                    this.updateTime = updateTime;
                }

                public int getMsgType() {
                    return msgType;
                }

                public void setMsgType(int msgType) {
                    this.msgType = msgType;
                }

                public Object getEndTime() {
                    return endTime;
                }

                public void setEndTime(Object endTime) {
                    this.endTime = endTime;
                }

                public int getIsDel() {
                    return isDel;
                }

                public void setIsDel(int isDel) {
                    this.isDel = isDel;
                }
            }
        }
    }
}
